<!DOCTYPE html>
<html lang="en"><head>
<meta charset="UTF-8">
<title>前端路由</title>
<link rel="stylesheet" href="layout.css">
</head>
<body>
设置块的颜色： 
<a href="#/red">红色</a> 
<a href="#/blue">蓝色</a> 
<a href="#/yellow">黄色</a> 
<a href="#/black">黑色</a> 
<a href="#/orange">橙色</a>
<div id="main" title="通过前端路由修改此方块的颜色">
</div>
<script src="//apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="main.js"></script>
</body>
</html>

